package com.wxs.pojo;

import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

public class User {

    @Resource(name = "cat2")
    private Cat cat;
    @Autowired
    private Dog dog;
    private String str;


    public Cat getCat() {
        return cat;
    }

    public Dog getDog() {
        return dog;
    }


}
